﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ModelManage.aspx.cs" Inherits="Whir_System_Module_Contents_ModelManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>功能模块管理</title>
    <link href="../../Skin/Default/Css/main.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        if (top.location == self.location) { 
            alert('禁止访问子栏目页！将跳转到默认页面');
            top.location='../../Default.aspx';
        } 
    </script>

    <!--提示文字-->

    <script src="../../Js/common.js" type="text/javascript"></script>

    <script language="javascript">
        showhint('1','<b>功能模块的概念</b><br/>功能模块对应的就是数据库中的表，为了保持系统的稳定性，不建议经常修改功能模块');
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <table width="99%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DADADA">
            <tr>
                <td height="30" align="left" class="form_tdText"><strong>模块筛选：</strong>
                    <asp:DropDownList ID="ddlSelect" runat="server" OnSelectedIndexChanged="ddlSelect_SelectedIndexChanged"
                        AutoPostBack="True" AppendDataBoundItems="true" CssClass="select_default">
                        <asp:ListItem Text=" === 所有模块 === " Value="all"></asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
        <whir:ezGridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="modelID"
            Width="99%">
            <HeaderStyle CssClass="grid_Title" Height="20px" />
            <RowStyle CssClass="grid_td" Height="23px" HorizontalAlign="Center" />
            <CustomColumns>
                <NumberColumn Align="Left" Position="0" Priority="0" Visible="False" Width="0" />
                <MultiChooseColumn Align="Left" Position="0" Priority="0" Visible="True" Width="0" />
                <RadioButtonColumn Align="Left" Position="0" Priority="0" Visible="False" Width="0" />
            </CustomColumns>
            <Columns>
                <asp:BoundField HeaderText="功能模块标识" DataField="moduleMark" />
                <asp:BoundField HeaderText="功能模块名称" DataField="modelName" />
                <asp:BoundField HeaderText="表名" DataField="tableName" />
                <asp:TemplateField HeaderText="管理操作">
                    <itemtemplate>
                            <a id="ezModelModify" href='<%# "ModelUpdate.aspx?Action=Modify&ModelID=" + Eval("ModelID")%>' title="功能模块修改">
                                <img src="../../image/CommonImage/eip_edit.gif" style="border:0px;"/></a>&nbsp;&nbsp;<a id="ezModelDelete" href='<%# "ModelManage.aspx?Action=Delete&ModelID=" + Eval("ModelID")%>' title="功能模块删除"
                                    onclick="return confirm('是否删除该功能模块？一旦删除，数据将不可恢复！建议删除前先“备份数据库”操作！');"><img src="../../image/CommonImage/eip_deleted.gif" style="border:0px;"/></a>&nbsp;&nbsp;<a id="ezFieldManage" href='<%# "../CommonModel/FieldManage.aspx?ModelID=" + Eval("ModelID")%>&url=<%= url %>' title="字段管理"><img src="../../image/CommonImage/modelfieldslist.gif" style="border:0px;"/></a>&nbsp;&nbsp;<a
                                        href='../CommonModel/ModelFormManage.aspx?ModelID=<%# Eval("ModelID") %>&url=<%= url %>' title="表单管理"><img src="../../image/CommonImage/modelformlist.gif" style="border:0px;"/></a>
                        
                    </itemtemplate>
                </asp:TemplateField>
            </Columns>
            <ExportSetting ExportExcel="False" ExportFileName="exportedgv" ExportPdf="False"
                ExportWord="False" Sepeater="&amp;nbsp;||&amp;nbsp;" ShowCopyRight="True" Visible="False">
            </ExportSetting>
            <AutoSortSetting AutoSort="False" SortTip="" />
            <TrimLongStrSetting MaxLength="100" Support="False" />
            <CustomPage SelfMotion="False" />
            <LockHeaderSetting Height="800px" Support="False" Width="" />
            <MouseBehavior MouseOverColor="" Support="False" />
        </whir:ezGridView>
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="f-gray" CustomInfoHTML="目前在第<font color=red>%currentPageIndex%</font>页,共有<font color=red>%PageCount%</font>页,共有<font color=red>%RecordCount%</font>条记录&nbsp;&nbsp;&nbsp;&nbsp;"
            FirstPageText="第一页" LastPageText="最后一页" NextPageText="下一页" OnPageChanged="AspNetPager1_PageChanged"
            PrevPageText="上一页" ShowCustomInfoSection="Left" ShowInputBox="Always" ShowPageIndex="False"
            Width="99%" UrlPaging="True">
        </webdiyer:AspNetPager>
        <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DADADA"
            id="divMessage" runat="server" visible="false">
            <tr>
                <td class="form_td"><strong>暂无数据</strong> </td>
            </tr>
        </table>
        <div class="command">
            <asp:Button ID="btnAddModel" runat="server" CssClass="btn_default" Text="添加" OnClick="btnAddModel_Click" />
            <input id="btnAddModelForms" type="button" value="复杂功能模块" onclick="location='ModelGroupManage.aspx'"
                class="btn_default2" visible="false" />
            <asp:Button ID="btnExport" runat="server" Text="导出下次引用" CssClass="btn_default2" OnClick="btnExport_Click" />            
        </div>
    </form>
</body>
</html>
